/*
 * @Author: ipk518 121206530@qq.com
 * @Date: 2023-11-20 09:00:43
 * @LastEditors: ipk518 121206530@qq.com
 * @LastEditTime: 2023-11-22 16:44:27
 * @FilePath: /moduleTest/inc/uart.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef _UART_h
#define _UART_h
#include <stdio.h>
#include <string.h>

#define UART0  "/dev/ttyS0"
#define UART1  "/dev/ttyS1"
#define UART2  "/dev/ttyS2"
#define UART3  "/dev/ttyS3"
#define UART4  "/dev/ttyS4"


extern int uartFd0;
extern int uartFd1;
extern int uartFd2;
extern int uartFd3;
extern int uartFd4;

int uartInit();
int uartSendbuffer(const char* uart,char *data,int len);

#endif